/*
 * 作者：姚俊
 * 功能：删除自己的留言
 * 日期：2015-07-05
 */
package teacher.action;

import admin.bean.Note;
import admin.service.fruits.NoteService;

public class DeleteNoteAction {
	
	
	private int noteId;

	public int getNoteId() {
		return noteId;
	}

	public void setNoteId(int noteId) {
		this.noteId = noteId;
	}
	
	public String execute()
	{
		Note note=new Note();
		note.setId(this.getNoteId());
		new NoteService().DeleteNote(note);
		return "succ";
	}

}
